//
//  KNButton.h
//

#import <UIKit/UIKit.h>

@interface KNButton : UIButton

/**
 UIButton 便利构造器
 
 @param frame            frame
 @param title            title
 @param titleColor       文字颜色
 @param isOpenTestBorder 测试边框
 
 @return KNButton class
 */
+ (KNButton *)buildWithFrame:(CGRect)frame
                       title:(NSString *)title
                  titleColor:(UIColor *)titleColor
                        font:(UIFont *)font
             testBorderWidth:(BOOL)isOpenTestBorder;


/**
 点击事件
 
 @param target target
 @param action action
 */
- (void)addEventTouchUpInsideWithTarget:(id)target
                                 action:(SEL)action;


/**
 设置纯色的背景图片
 
 @param imageColor 色值
 */
- (void)normalBackgroundWithImageColor:(UIColor *)imageColor;

/**
 设置纯色的背景图片 高亮状态
 
 @param imageColor 色值
 */
- (void)highlightedBackgroundWithImageColor:(UIColor *)imageColor;

/**
 设置纯色的背景图片
 
 @param imageColor 色值
 */
- (void)selectedBackgroundWithImageColor:(UIColor *)imageColor;

/**
 设置纯色的背景图片
 
 @param imageColor 色值
 */
- (void)disabledBackgroundWithImageColor:(UIColor *)imageColor;
@end
